<template>
  <el-form :inline="true" :model="roleQuery" class="demo-form-inline">
    <el-form-item label="角色名称">
      <el-input v-model="roleQuery.name" placeholder="请输入角色名称" />
    </el-form-item>
    <el-form-item>
      <el-button type="primary" @click="searchRole">查询</el-button>
    </el-form-item>
  </el-form>
</template>

<script>
export default {
  name: 'Search',
  props: {
    roleQuery: {
      require: true,
      type: Object,
      default: function() {
        return {}
      }
    }
  },
  methods: {
    searchRole() {
      this.$emit('searchRole')
    }
  }
}
</script>

<style scoped lang="scss">

</style>
